package com.itheima.reggie.service;

import com.itheima.reggie.entity.ShoppingCart;


import java.util.List;

public interface ShoppingCartService {
    //查询所有
    List<ShoppingCart> findAll(Long userId);
    //加入购物车
    Boolean add(ShoppingCart shoppingCart);
    //清空购物车
    Boolean deleteByIds(Long userId);
    //判断购物车中是否已存在指定商品
    ShoppingCart findByNameAndUserId(ShoppingCart shoppingCart);
    //更新购物车商品数量
    Boolean updateNumber(ShoppingCart shoppingCart);
    //删除购物车指定商品
    Boolean deleteById(ShoppingCart shoppingCart);

}
